﻿using IBLL;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class BangBLL : IBangBLL
    {
        public BangBLL(IDal<memberType> dal)
        {
            Dal = dal;
        }

        public IDal<memberType> Dal { get; }
        /// <summary>
        /// 绑定下拉框添加
        /// </summary>
        /// <param name="memberType">表名</param>
        /// <returns>返回受影响行数</returns>
        public Task<int> BangTian(memberType memberType)
        {
        return Dal.Add(memberType);
        }
        /// <summary>
        /// 绑定下拉框列表显示
        /// </summary>
        /// <returns>返回受影响函数</returns>
        public IQueryable<memberType> BangXian()
        {
        return Dal.Show();
        }
    }
}
